package com.yunyao.dao.service.bamu;

import com.yunyao.common.dto.CheckMarkDtoDto;
import com.yunyao.common.dto.PrePaymentDto;
import com.yunyao.common.web.util.PageResult;
import com.yunyao.dao.model.BamuPurchaseContractPrePayment;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 采购销售合同预收款 服务类
 * </p>
 *
 * @author xingjishuai
 * @since 2024-07-02
 */
@Validated
public interface IBamuPurchaseContractPrePaymentService extends IService<BamuPurchaseContractPrePayment> {

    /**
     * 采购销售合同预收款列表
     *
     * @param dto
     * @return
     */
    PageResult<BamuPurchaseContractPrePayment> pageList(@Valid @NotNull PrePaymentDto dto);

    /**
     * 获取详情接口
     *
     * @param id
     * @return
     */
    BamuPurchaseContractPrePayment findByIdInfo(@NotBlank String id);

    /**
     * 添加数据
     *
     * @param dto
     */
    void add(@Valid @NotNull BamuPurchaseContractPrePayment dto);


    void finishPayment(@RequestBody @Valid @NotNull CheckMarkDtoDto dto);
}
